<template>
  <router-view />
</template>

<script setup>
import { generateUUID } from "@/utils/globalMethod";
import throttle from "@/hooks/throttle";
import { onMounted } from "vue";

const UUID = generateUUID();
const viewHeight = ref(0);
const viewWidth = ref(0);

const local = localStorage.getItem("qgj_UUID");

if (!local) {
  localStorage.setItem("qgj_UUID", UUID);
}

const throttleFn = throttle(function () {
  viewHeight.value = document.body.clientHeight;
  viewWidth.value = document.body.clientWidth;
}, 100);

onMounted(() => {
  // new DevicePixelRatio().init()
});
</script>

<style scoped lang="scss"></style>
